﻿@using DIS.Infrastructure.Entities.Entity;
@using DIS.Infrastructure.Entities.Enum;
@{
    ViewBag.Title = "MyInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
    User user = ViewBag.User;
}
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6">
        <tr>
            <td height="19" background="/content/img/tbg.gif" bgcolor="#E7E7E7">
                <table width="96%" border="0" cellspacing="1" cellpadding="1">
                    <tr>
                        <td style="padding-left: 10px;">
                            <b><strong>用户信息</strong></b>
                        </td>
                        <td align="right">
                            <b></b>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" valign="top" bgcolor="#FFFFFF">
                <form name="saveuserForm" action="/account/ChangeInfo" method="post">
               
                @{
                    if (user != null)
                    {
                         
                        <table width="98%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>登录账号：
                        </td>
                        <td width="84%" style="text-align: left;">
                           @user.UserName
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>真实姓名：
                        </td>
                        <td width="84%" style="text-align: left;">
                            @user.RealName
                        </td>
                    </tr>
                     <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>专业所：
                        </td>
                        <td width="84%" style="text-align: left;">
                            @user.ProfessionName
                        </td>
                    </tr>
                     <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>部门：
                        </td>
                        <td width="84%" style="text-align: left;">
                            @user.DepartMentName
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="right">
                            性别：
                        </td>
                        <td style="text-align: left;">
                            @{
                        if (user.Gender == Gender.Male)
                        {
                                    
                                    <label for="man">男</label>
                        }
                        else
                        {
                                   <label for="woman">
                               女</label>
                        }
                            }
                            
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>出生日期：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="Birthday" type="text" id="Birthday" readonly="readonly" value="@user.Birthday" size="16" style="width: 200px" onClick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" />
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            QQ：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="QQ" type="text" id="QQ" size="16"  value="@user.QQ"  style="width: 200px" />
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            <span class='red'>*</span>电话：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="Phone" type="text" id="Phone" size="16"  value="@user.Phone"  style="width: 200px" />
                        </td>
                    </tr>
                    <tr>
                        <td width="16%" height="30" align="right">
                            身份证号：
                        </td>
                        <td width="84%" style="text-align: left;">
                            <input name="IdCardNo" type="text" id="IdCardNo" size="16"  value="@user.IdCardNo"  style="width: 200px" />
                        </td>
                    </tr>
                    <tr>
                        <td height="30" align="right">
                            职位：
                        </td>
                        <td style="text-align: left;">
                             
                                @{
                        if (user.SystemRole == UserRole.Leader)
                        {
                                        <span>普通员工</span> 
                        }
                        else
                        { 
                                                 <span>领导</span> 
                        }
                                    }
                                    
                               
                        </td>
                    </tr>
                     
                    <tr> 
            <td height="60">&nbsp;</td>
            <td align="left">
            	<input type="submit" name="submit" value="保存" class="coolbg np" />
            </td>
          </tr>
                </table>
                    }
                     
                }
                
                </form>
            </td>
        </tr>
    </table>

